# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=py3-django-mptt
_pkgname=django-mptt
pkgver=0.16
pkgrel=2
pkgdesc="Utilities for implementing a modified pre-order traversal tree in django"
options="!check" # Requires running django instance
url="https://github.com/django-mptt/django-mptt"
arch="noarch"
license="MIT"
depends="py3-django py3-django-js-asset"
makedepends="py3-hatchling py3-gpep517"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/django-mptt/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-django-mptt" # Backwards compatibiity
provides="py-django-mptt=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl
}

sha512sums="
98f40f2b51e8d48f6b872d6775968282d135ca60d13e9a36a811ef54506f957fa5abe3098e1f68476709d80966558db69809f3d2ff5f5a4a1a69c43931e4c141  py3-django-mptt-0.16.tar.gz
"
